package org.extframework.ld.util;

import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * @author : Dong.Li
 * @created : 2013-1-17
 * @version : 1.0
 * @description :
 */
public class FileList extends ArrayList<File> implements List<File> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public boolean contains(Object obj) {
		if(obj instanceof File){
			File file = (File)obj;
			for(File fe : this){
				if(fe.getAbsolutePath().equals(file.getAbsolutePath())){
					return true;
				}
			}
		}
		return false;
	}
	
	public boolean addAll(Collection<? extends File> c) {
		return true;
	}
	
}
